#include "qmladapter.h"


QmlAdapter::QmlAdapter(QQmlContext* _q, QObject *parent) :
    QObject(parent)
{
    fromParent_PTR_qmlAsContext = _q;
    OBJ_ModelItems = new ModelItems;
    OBJ_ModelproposalA = new ModelproposalA;
    OBJ_ModelCollections = new ModelCollections;
    fromParent_PTR_qmlAsContext->setContextProperty("adapter",this);
    fromParent_PTR_qmlAsContext->setContextProperty("ListMaintance",ListMaintence::getInstance());
    fromParent_PTR_qmlAsContext->setContextProperty("C_model",OBJ_ModelCollections);
    fromParent_PTR_qmlAsContext->setContextProperty("I_model",OBJ_ModelItems);
    fromParent_PTR_qmlAsContext->setContextProperty("A_model",OBJ_ModelproposalA);
}
